<include file="public:header" />
<form id="info_form" action="{:u('article/edit')}" method="post" enctype="multipart/form-data">
<div class="pad_lr_10">
	<div class="col_tab">
		<ul class="J_tabs tab_but cu_li">
			<li class="current">{:L('article_basic')}</li>			
		</ul>
		<div class="J_panes">
			<div class="content_list pad_10">
				<table width="100%" cellspacing="0" class="table_form">
					<tr>
						<th width="120">{:L('article_cateid')} :</th>
						<td><select class="J_cate_select mr10" data-pid="0" data-uri="{:U('articleCate/ajax_getchilds')}" data-selected="{$selected_ids}"></select>
                			<input type="hidden" name="cateId" id="J_cate_id" value="{$info.cateId}" /></td>
					</tr>
		            <tr>
						<th>{:L('article_title')} :</th>
						<td>
		                    <input type="text" name="title" id="J_title" rel="title_color" class="input-text iColorPicker" size="60" value="{$info.title}" style="color:{$info.colors}">
		                    <input type="hidden" value="{$info.colors}" name="colors" id="title_color">
					        <a href="javascript:;" class="color_picker_btn"><img class="J_color_picker" data-it="J_title" data-ic="J_color" src="__STATIC__/images/color.png"></a>
		                </td>
					</tr>
		           
		            <tr>
						<th>{:L('sort_order')} :</th>
						<td>
							<input type="text" name="ordid" id="J_ordid" class="input-text" value="{$info.ordid}" size="30">					     
		                </td>
					</tr> 
                    
                   <tr>                        
            	      <th>{:L('is_important')} :</th>
            	      <td>
                            <label><input type="radio" name="isImportant" value="0" <if condition="$info.isImportant eq 0"> checked="true" </if> > {:L('no')}</label>&nbsp;&nbsp;
                            <label><input type="radio" name="isImportant" value="1" <if condition="$info.isImportant eq 1"> checked="true" </if> > {:L('yes')}</label>&nbsp;&nbsp;
            	      </td> 
                    </tr>
                    
                    
                    <tr>                        
            	      <th>{:L('store_channel')} :</th>
            	      <td>
                            <label><input type="radio" name="channel" value="0" <if condition="$info.channel eq 0"> checked="true" </if>> {:L('store_channel0')}</label>&nbsp;&nbsp;
                            <label><input type="radio" name="channel" value="1" <if condition="$info.channel eq 1"> checked="true" </if>> {:L('store_channel1')}</label>&nbsp;&nbsp;
                            <label><input type="radio" id="channel2" name="channel" value="2" <if condition="$info.channel eq 2"> checked="true" </if>> {:L('store_channel2')}</label>
            	      </td> 
                    </tr>
                                          
		            <tr>
						<th>{:L('article_copyfrom')} :</th>
						<td><input type="text" name="copyFrom" id="copyFrom" class="input-text" value="{$info.copyFrom}"  size="30" value=""></td>
					</tr>                                                         
                   
                   
                   
					<tr>
						<th>{:L('publish')} :</th>
		 				<td>
		                	<label><input type="radio" name="status" class="radio_style" value="1" <if condition="$info.status eq '1'">checked="checked"</if>> {:L('yes')}</label>&nbsp;&nbsp;
							<label><input type="radio" name="status" class="radio_style" value="0" <if condition="$info.status eq '0'">checked="checked"</if>> {:L('no')}</label>
						</td>
					</tr>
             
             
		            <tr>
		                <th>详细内容 :</th>
						<td><textarea name="info" id="info" style="width:80%;height:400px;visibility:hidden;resize:none;">{$info.info}</textarea></td>
					</tr>
				</table>
			</div>
			
        </div>
		<div class="mt10"><input type="submit" value="{:L('submit')}" id="dosubmit" name="dosubmit" class="btn btn_submit" style="margin:0 0 10px 100px;"><br /><br /><br /></div>
	</div>
</div>
<input type="hidden" name="menuid"  value="{$menuid}"/>
<input type="hidden" name="id" id="id" value="{$info.id}" />
</form>
<include file="public:footer" />
<script src="__STATIC__/js/jquery/plugins/iColorPicker.js"></script>
<script src="__STATIC__/js/jquery/plugins/colorpicker.js"></script>
<script src="__STATIC__/js/kindeditor/kindeditor-min.js"></script>
<script>
$('.J_cate_select').cate_select('请选择');
$(function() {
	KindEditor.create('#info', {
		uploadJson : '{:U("attachment/editer_upload")}',
		fileManagerJson : '{:U("attachment/editer_manager")}',
		allowFileManager : true
	});
	$('ul.J_tabs').tabs('div.J_panes > div');
	
	//颜色选择器
	$('.J_color_picker').colorpicker();

});
</script>
</body>
</html>